package fschmidt.util.mail.nomail;

import java.util.NoSuchElementException;
import fschmidt.util.mail.Mail;
import fschmidt.util.mail.Pop3Server;
import fschmidt.util.mail.MailIterator;


final class Pop3ServerImpl implements Pop3Server {

	public MailIterator getMail() {
		return new MailIterator(){
			public boolean hasNext() {
				return false;
			}
			public Mail next() throws  NoSuchElementException {
				throw new NoSuchElementException();
			}
			public void close() {}
		};
	}

	public void setLeaveOnServer(boolean b) {}
	public void setMailLimit(int maxMailCount) {}
	public String getUsername() {
		throw new UnsupportedOperationException();
	}
	public void useSsl() {}
	public void setDebug(boolean b) {}
}
